
#reviews-header{
    font-family: var(--serif);
    font-weight: 700;
    font-size:medium;
    margin: 0 2rem 0 5rem;
    padding: 0;
    border-bottom: 2px solid var(--blush);
}

#reviews-header h1{
    margin: 0 10rem 0rem 0rem;

}
#reviews-header p{
    font-weight: 200;
}

#filter-bar{
    display: flex;
    gap: 10px;
    margin: 20px 10px 0px 10px;
}

.filter-category-style{
    padding: 0.3rem;
    border: 0px solid var(--ink);
    font-family: var(--mono);
    background: var(--peach);
}


#reviews-page{
    display:flex;
    /* background: var(--blush); */
    height:80vh;
    margin: 10px auto;
    justify-content: space-evenly;
}

.category-section{
    /* position:relative; */
    /* display: flex; */
    flex-direction: column;
    border: 3px dashed var(--ink);
    border-radius: 7px;
    padding: 0 2rem;
    overflow-y:scroll;

    &::-webkit-scrollbar{
        /* background-color:var(--blush); */
        width: 5px;
    }
    &::-webkit-scrollbar-thumb{
        background-color:var(--ink);
    }
}


.card-cover{
    width: 80px;
    height:auto;
    cursor: pointer;
    border-radius: 2px;
    transition: transform 0.2s ease-out;
}

.card-grid{
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.card{
    width: 100px;
}

.card-cover:hover{
    transform:scale(105%);
    animation: 2s infinite alternate ease-in-out hover;
}

.card-caption{
    text-wrap: wrap;
}

/* ================================================================
   MODAL
   The overlay covers the full viewport and sits on top of everything.
   The modal box is centered inside it.
================================================================ */

/* The overlay: full screen, dark background, hidden by default */
#modal-overlay {
    display: none;                  /* hidden until JS adds .open */
    position: fixed;                /* stays put when page scrolls */
    inset: 0;                       /* top/right/bottom/left: 0 */
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;                  /* above everything else */

    /* Center the modal box inside the overlay */
    justify-content: center;
    align-items: center;
}

/* When JS adds .open, switch display to flex so centering kicks in */
#modal-overlay.open {
    display: flex;
    flex-direction:column;
    justify-content:center;
    gap: 5px;
}

/* The modal box */
#modal {
    position: relative;             /* so the close button can be positioned inside it */
    background: var(--paper);
    border: 1px solid var(--paper-rule);
    width: 90%;
    max-width: 600px;               /* won't get too wide on large screens */
    max-height: 85vh;               /* won't overflow the screen vertically */
    overflow-y: auto;   
    margin:5px;            /* scrolls internally if content is tall */
    padding: 2rem;
    border-radius: 4px;
}

#modal-meta h2{
    font-family: var(--serif);
    font-size: 2rem;
}

#modal-meta p{
    font-family: var(--mono);
    font-size: 1rem;
}

#modal-review{
    font-size: 1.2rem;
}

/* Close button: pinned to top-right corner of the modal box */
#modal-close {
    position: absolute;
    color: var(--blush);
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

/* Cover image: constrained, not full-bleed */
#modal-cover {
    width: 120px;
    height: auto;
    display: block;
    margin-bottom: 1rem;
}

/* ================================================================
   DIAL
================================================================ */

#modal-dial{
    /* background-color: var(--blush-pale); */
    width:80%;
    align-items:center;
}

/* Label above the strip */
#dial-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    color: var(--ink);
    text-align:center;
}

/* The scrollable strip */
#dial-track {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;         /* room for scrollbar */
    align-items:center;
    justify-content:center;

    /* Hide scrollbar visually but keep it functional */
    scrollbar-width: none;
    /* background-color:aqua; */
    /* width:100%; */
}

#dial-track::-webkit-scrollbar {
    display: none;
}

/* Individual thumbnail item */
.dial-item {
    position: relative;             /* so tooltip can position against it */
    flex-shrink: 0;                 /* don't squish items */
    cursor: pointer;
    opacity: 0.5;                   /* dimmed by default */
    transition: opacity 0.2s;
}

.dial-item:hover {
    opacity: 1;
}

/* Active item (currently open review) — fully visible, not clickable */
.dial-item--active {
    opacity: 1;
    cursor: default;
    outline: 2px solid currentColor; /* visible indicator, inherits your text color */
    outline-offset: 2px;
}

/* Thumbnail image */
.dial-thumb {
    width: 60px;
    height: auto;
    object-fit: cover;
    display: block;
}

/* Tooltip — hidden by default, shown on hover */
.dial-tooltip {
    display: none;                  /* JS-free: CSS handles show/hide */
    position: absolute;
    bottom: calc(100% + 6px);      /* sits just above the thumbnail */
    left: 50%;
    transform: translateX(-50%);   /* centered over the thumb */
    background: #2c2c2c;
    color: #f5f2eb;
    font-size: 0.75rem;
    white-space: nowrap;
    padding: 0.25em 0.5em;
    border-radius: 3px;
    pointer-events: none;           /* doesn't interfere with clicks */
    z-index: 10;
}

/* Show tooltip on hover — only for non-active items */
.dial-item:not(.dial-item--active):hover .dial-tooltip {
    display: block;
}